package com.nlscan.qdkit.ui.publico.util;

import android.os.Environment;

@Deprecated
public class SdCard {
    private static SdCard instance = new SdCard();

    public String getSdCardPath() {
        if (isAvailable()) {
            return Environment.getExternalStorageDirectory()
                    .getAbsolutePath();
        }
        return null;
    }

    private SdCard() {
    }

    public static SdCard getInstance() {
        return instance;
    }


    public boolean isAvailable() {
        return Environment.getExternalStorageState().equals(
                Environment.MEDIA_MOUNTED);
    }

}
